<a href="{:url('addpinpai')}" class="layui-btn">新建品牌</a>




<table class="layui-table edit-table" lay-data="{cellMinWidth: 80,
    url:'{:url('getpinpai')}',page: true,totalRow:true
    }" lay-filter="edit-table" data-url="{:url('editpinpai')}" data-key="id">
    <thead>
    <tr>
        <th lay-data="{field:'id', width:80, sort: true}">id</th>
        <th lay-data="{toolbar:'#img'}">品牌logo</th>
        <th lay-data="{field:'name', sort: true,edit:'text'}">品牌名称</th>
        <th lay-data="{field:'sort',edit:'text'}">排序（数值越大越靠前）</th>
        <th lay-data="{field:'desc',edit:'text'}">品牌描述</th>

        <!--<th lay-data="{toolbar:'#hot'}">设为推荐</th>-->
        <!--<th lay-data="{toolbar:'#status'}">买家信息</th>-->
        <th lay-data="{toolbar: '#manipulate', width:200}">操作</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="img">
    <img src="{{d.logo}}" alt="">
</script>
<!--<script type="text/html" id="hot">-->

    <!--<input lay-filter="switchAjax" {{#  if(d.is_hot==0){ }} checked="" {{#  } else { }} {{#  } }} data-url="{:url('pinpai')}?id={{d.id}}"  type="checkbox"  name="open" lay-skin="switch" lay-text="显示|隐藏">-->

<!--</script>-->

<script type="text/html" id="manipulate" >
    <a href="{:url('delectpenpai')}?id={{d.id}}" class="layui-btn layui-btn-sm layui-btn-danger ajax-delete" data-url="" data-msg="您确定要删除么？">删除</a>
    <!--<a href="{:url('secoundfenlei')}?id={{d.id}}" class="layui-btn layui-btn-sm">查看二级分类</a>-->
</script>
